package tr.edu.metu.is.mega.client.widgets;

import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.widget.form.ComboBox;

/**
 * MEGA combo box component.
 * 
 * @param <T> type modifier
 */
public class MegaComboBox<T extends ModelData> extends ComboBox<T> implements MegaField {

    /**
     * Default constructor.
     * 
     * @param bindAttribute bind attribute
     */
    public MegaComboBox(String bindAttribute) {
        super();
        setName(bindAttribute);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getBoundAttribute() {
        return getName();
    }
}
